package com.cyl.manager.aws.domain.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * 店铺数据统计对象 aws_shop_statistics
 * 
 * @author zcc
 */
@ApiModel(description="店铺数据统计对象")
@Data
@TableName("aws_shop_statistics")
public class ShopStatistics {
    public ShopStatistics() {
    	super();
	}
    
    

	public ShopStatistics(ShopStatistics shopStatistics) {
		super();
		this.id = shopStatistics.getId();
		this.createTime = shopStatistics.getCreateTime();
		this.tjdata = shopStatistics.getTjdata();
		this.deptZbjId = shopStatistics.getDeptZbjId();
		this.deptTzId = shopStatistics.getDeptTzId();
		this.deptDpId = shopStatistics.getDeptDpId();
		this.tjyear = shopStatistics.getTjyear();
		this.tjmonth = shopStatistics.getTjmonth();
		this.tjweek = shopStatistics.getTjweek();
		this.tjday = shopStatistics.getTjday();
		
		this.memberConut = shopStatistics.getMemberConut();
		this.memberDayConut = shopStatistics.getMemberDayConut();
		this.payQuantity = shopStatistics.getPayQuantity();
		this.payAmount = shopStatistics.getPayAmount();
		this.payFeeAmount = shopStatistics.getPayFeeAmount();
		this.payConut = shopStatistics.getPayConut();
		this.retQuantity = shopStatistics.getRetQuantity();
		this.retAmount = shopStatistics.getRetAmount();
		this.retFeeAmount = shopStatistics.getRetFeeAmount();
		this.retConut = shopStatistics.getRetConut();
		this.memberLoginConut = shopStatistics.getMemberLoginConut();
		if(this.memberConut == null) {
			this.memberConut = 0;
		}
		if(this.memberDayConut == null) {
			this.memberDayConut = 0;
		}
		if(this.payQuantity == null) {
			this.payQuantity = 0;
		}
		if(this.payAmount == null) {
			this.payAmount = BigDecimal.ZERO;
		}
		if(this.payFeeAmount == null) {
			this.payFeeAmount = BigDecimal.ZERO;
		}
		if(this.payConut == null) {
			this.payConut = 0;
		}
		if(this.retQuantity == null) {
			this.retQuantity = 0;
		}
		if(this.retAmount == null) {
			this.retAmount = BigDecimal.ZERO;
		}
		if(this.retFeeAmount == null) {
			this.retFeeAmount = BigDecimal.ZERO;
		}
		if(this.retConut == null) {
			this.retConut = 0;
		}
		if(this.memberLoginConut == null) {
			this.memberLoginConut = 0;
		}
		
		
	}



	private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @Excel(name = "id")
    private Long id;

    @ApiModelProperty("创建时间")
    @Excel(name = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("日期")
    @Excel(name = "日期")
    private Integer tjdata;

    @ApiModelProperty("直播间部门id")
    @Excel(name = "直播间部门id")
    private Long deptZbjId;

    @ApiModelProperty("上级归属部门id")
    @Excel(name = "上级归属部门id")
    private Long deptTzId;

    @ApiModelProperty("店铺部门id")
    @Excel(name = "店铺部门id")
    private Long deptDpId;

    @ApiModelProperty("年")
    @Excel(name = "年")
    private Integer tjyear;

    @ApiModelProperty("月")
    @Excel(name = "月")
    private Integer tjmonth;

    @ApiModelProperty("周")
    @Excel(name = "周")
    private Integer tjweek;

    @ApiModelProperty("日")
    @Excel(name = "日")
    private Integer tjday;

    @ApiModelProperty("总人数")
    @Excel(name = "总人数")
    private Integer memberConut;

    @ApiModelProperty("注册人数")
    @Excel(name = "注册人数")
    private Integer memberDayConut;

    @ApiModelProperty("销售商品数")
    @Excel(name = "销售商品数")
    private Integer payQuantity;

    @ApiModelProperty("销售订单额")
    @Excel(name = "销售订单额")
    private BigDecimal payAmount;

    @ApiModelProperty("支付手续费")
    @Excel(name = "支付手续费")
    private BigDecimal payFeeAmount;

    @ApiModelProperty("销售订单数")
    @Excel(name = "销售订单数")
    private Integer payConut;

    @ApiModelProperty("退款商品数")
    @Excel(name = "退款商品数")
    private Integer retQuantity;

    @ApiModelProperty("退款订单额")
    @Excel(name = "退款订单额")
    private BigDecimal retAmount;

    @ApiModelProperty("退款手续费")
    @Excel(name = "退款手续费")
    private BigDecimal retFeeAmount;

    @ApiModelProperty("退款订单数")
    @Excel(name = "退款订单数")
    private Integer retConut;
    
    @ApiModelProperty("登录人数")
    @Excel(name = "登录人数")
    private Integer memberLoginConut;
    

}
